package com.example.lock.component.lock;


import java.lang.reflect.Method;

/**
 * @Description: 默认锁失败事件
 * @author: sun
 * @date: 2022.01.17
 */
public class DefaultLockFailureStrategy implements LockFailureStrategy {
    protected static String DEFAULT_MESSAGE = "request failed,please retry it.";

    @Override
    public void onLockFailure(String key, Method method, Object[] arguments) {
        throw new RuntimeException(DEFAULT_MESSAGE);
    }
}
